import request from '@/utils/request'

// 查询Cathay Case列表
export function listDealCathayCase(query) {
  return request({
    url: '/case/dealCathayCase/list',
    method: 'get',
    params: query
  })
}

// 查询Cathay Case详细
export function getDealCathayCase(id) {
  return request({
    url: '/case/dealCathayCase/' + id,
    method: 'get'
  })
}

// 保存Cathay Case
export function saveDealCathayCase(data) {
  return request({
    url: '/case/dealCathayCase/save',
    method: 'post',
    data: data
  })
}

// 删除Cathay Case
export function delDealCathayCase(id) {
  return request({
    url: '/case/dealCathayCase/' + id,
    method: 'delete'
  })
}

// 导出Cathay Case
export function exportDealCathayCase(query) {
  return request({
    url: '/case/dealCathayCase/export',
    method: 'get',
    params: query
  })
}

// 初始化Cathay Case详细
export function initDealCathayCase(dealId, type) {
  return request({
    url: '/case/dealCathayCase/initDealCathayCase/' + dealId + '/' + type,
    method: 'get'
  })
}

// 验证是否已创建Cathay Case
export function checkAdded(data) {
  return request({
    url: '/case/dealCathayCase/checkAdded',
    method: 'get',
    params: data
  })
}

// 数据大屏-项目行业占比
export function findDealGroupDealIndustry() {
  return request({
    url: '/case/dealCathayCase/findDealGroupDealIndustry',
    method: 'get'
  })
}

// 查询项目投资情况的列表
export function listKaihuiInvestmentSituation(query) {
  return request({
    url: '/deal/kaihuiInvestmentSituation/list',
    method: 'get',
    params: query
  })
}
